﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using StedySoft.SenseSDK;

namespace SenseTimeTracker.CommonSenseControls
{
	public class CommonSenseListControl : SenseListControl
	{
		public ISenseListItem SelectedItem
		{
			get
			{
				for (int i = 0; i < Count; i++ )
				{
					CommonSenseDisplayPanelItem displayItem = this[i] as CommonSenseDisplayPanelItem;
					if (displayItem != null)
					{
						if (displayItem.IsSelected)
						{
							return displayItem;
						}
					}
				}
				return null;
			}
		}

	}
}
